//#include "ys.h"

#define  GPFCON  (*(volatile unsigned  long*)0x56000050)
#define  GPFDAT  (*(volatile unsigned  long*)0x56000054)

#define LED_D10  (0X00000001<<(4*2))
#define LED_D11  (0X00000001<<(5*2))
#define LED_D12  (0X00000001<<(6*2))

#define LED_D10_ON  (0x01<<4)
#define LED_D11_ON  (0x01<<5)
#define LED_D12_ON  (0x01<<6)


void delay(void)
{
 unsigned long t=0;

 for(t=0;t<10000;t++);
}
//.

int main()
{
	#if 1

		GPFCON=0X00001500;
		GPFDAT=0x00;

		#if 0
		while(1)
		{
		GPFDAT=0;
		delay();
		GPFDAT=0XFF;
		delay();
		}
		#endif
	#else

#if 1
		GPFCON|=LED_D10|LED_D11|LED_D12;

		 while(1)
		{
		 GPFDAT|=LED_D10_ON|LED_D11_ON|LED_D12_ON;
		 delay();

		 GPFDAT&=~(LED_D10_ON|LED_D11_ON|LED_D12_ON);
		 delay();
		}
#endif
	#endif

	//exe_pf();
	//exe_int_pf();


 //return 0;

}
//.




//end
